package com.bi.cloud.dubbo;

import com.bi.cloud.service.StudentService;
import com.bi.sampleapi.DubboStudentApiService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

@DubboService(interfaceClass = DubboStudentApiService.class, version = "1.0.0")
public class DubboStudentApiServiceImpl implements DubboStudentApiService {

    @Resource
    private StudentService studentService;

    @Override
    public int getActivity() {
        return studentService.getActivity();
    }
}
